var express = require('express');
var router = express.Router();
const {addCustomer,getCustomer,delCustomer,getCustomerById,updateCustomer}=require('../controllers/customer')
/* GET home page. */
router.post('/', addCustomer);
router.get('/', getCustomer);
router.get('/:_id',getCustomerById);
router.delete('/',delCustomer);
router.put('/',updateCustomer)
module.exports = router;
